CC = g++
LD = g++
DEBUG = 
Ox = -O3 -fopenmp
ARCH = -m64
LIBS = -lbbhutil -lutilio -lT3nsors
EXE = ModMaxwell
LDFLAGS = -fopenmp

CommCLI.o:	CommCLI.h CommCLI.cpp
		$(CC) -c CommCLI.cpp $(Ox) $(ARCH) $(DEBUG)

RKModMaxwell.o:	RKModMaxwell.h RKModMaxwell.cpp
		$(CC) -c RKModMaxwell.cpp $(Ox) $(ARCH) $(DEBUG)

MW.o:	MW.h MW.cpp
		$(CC) -c MW.cpp $(Ox) $(ARCH) $(DEBUG)

MWSolve.o:	MW.h MWSolve.cpp
		$(CC) -c MWSolve.cpp $(Ox) $(ARCH) $(DEBUG)

MWPrint.o:	MW.h MWPrint.cpp
		$(CC) -c MWPrint.cpp $(Ox) $(ARCH) $(DEBUG)

MWArgs.o:	MW.h MWArgs.cpp
		$(CC) -c MWArgs.cpp $(Ox) $(ARCH) $(DEBUG)

main.o:		main.cpp
		$(CC) -c main.cpp $(Ox) $(ARCH) $(DEBUG)

MW:		CommCLI.o RKModMaxwell.o MW.o MWSolve.o MWPrint.o MWArgs.o main.o
		$(LD) $(LDFLAGS) CommCLI.o RKModMaxwell.o MW.o MWSolve.o MWPrint.o MWArgs.o main.o -o $(EXE) $(LIBS) $(DEBUG)

